package com.ruoyi.quality.domain;

import java.math.BigDecimal;
import io.swagger.v3.oas.annotations.media.Schema;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import io.swagger.v3.oas.annotations.media.Schema;

/**
 * 销售对象 quality_sale
 * 
 * @author wky
 * @date 2024-06-15
 */
@Schema(description = "销售对象")
public class QualitySale extends BaseEntity
{
    private static final long serialVersionUID = 1L;


    /**  */
    @Schema(title = "")
    private Long saleId;

    /** 物料编号 */
    @Schema(title = "物料编号")
    @Excel(name = "物料编号")
    private Long materialId;

    /** 客户编号 */
    @Schema(title = "客户编号")
    @Excel(name = "客户编号")
    private Long customId;

    /** 总销售 */
    @Schema(title = "总销售")
    @Excel(name = "总销售")
    private String saleTotal;

    /** 销售价格 */
    @Schema(title = "销售价格")
    @Excel(name = "销售价格")
    private BigDecimal salePrice;

    /** 用户编号 */
    @Schema(title = "用户编号")
    @Excel(name = "用户编号")
    private Long userId;
    public void setSaleId(Long saleId) 
    {
        this.saleId = saleId;
    }

    public Long getSaleId() 
    {
        return saleId;
    }


    public void setMaterialId(Long materialId) 
    {
        this.materialId = materialId;
    }

    public Long getMaterialId() 
    {
        return materialId;
    }


    public void setCustomId(Long customId) 
    {
        this.customId = customId;
    }

    public Long getCustomId() 
    {
        return customId;
    }


    public void setSaleTotal(String saleTotal) 
    {
        this.saleTotal = saleTotal;
    }

    public String getSaleTotal() 
    {
        return saleTotal;
    }


    public void setSalePrice(BigDecimal salePrice) 
    {
        this.salePrice = salePrice;
    }

    public BigDecimal getSalePrice() 
    {
        return salePrice;
    }


    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("saleId", getSaleId())
            .append("materialId", getMaterialId())
            .append("createTime", getCreateTime())
            .append("createBy", getCreateBy())
            .append("customId", getCustomId())
            .append("saleTotal", getSaleTotal())
            .append("salePrice", getSalePrice())
            .append("userId", getUserId())
            .toString();
    }
}
